<%--
  Created by IntelliJ IDEA.
  User: 熊思豪
  Date: 2023/1/4
  Time: 20:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>货物管理</title>
</head>
<body>
<a href="/addGoods.html">添加货物</a>
<table width="600px" border="1px" class="table table-condensed table-bordered table-hover table-striped">
    <tr>
        <th>ID</th>
        <th>货物名称</th>
        <th>类型</th>
        <th>重量（KG）</th>
        <th>操作</th>
    </tr>
    <c:forEach var="goods" items="${goods}">
        <tr>
            <td>${goods.id}</td>
            <td>${goods.goodsName}</td>
            <td>${goods.goodsType}</td>
            <td>${goods.goodsWeight}</td>
            <td>
                <a href="/?id=${student.stuId}">更新</a>
                <a href="javascript:if(confirm('是否确认删除？'))location.href='/deleteById?id=${goods.id}'">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
